-- GENERATED SPELL FOR [Ever-Core the Punisher] --


function spell0_18698(pUnit, Event) --@Arcane Explosion,Self--
pUnit:FullCastSpellOnTarget(33860,pUnit)
pUnit:RegisterEvent('Sorts_18698', 1500, 1)
end

function spell1_18698(pUnit, Event) --@Suppression,Self--
pUnit:FullCastSpellOnTarget(35892,pUnit)
pUnit:RegisterEvent('Sorts_18698', 6000, 1)
end

function Sorts_18698(pUnit, Event)
local choix_sorts_18698 = math.random(0, 1)
if choix_sorts_18698 == 0 then
pUnit:RegisterEvent('spell0_18698', 1, 1)
end
if choix_sorts_18698 == 1 then
pUnit:RegisterEvent('spell1_18698', 1, 1)
end
end

function mob18698_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18698', math.random(1500, 3000), 1)
end

function mob18698_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18698_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18698_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18698, 1, 'mob18698_Action')
RegisterUnitEvent(18698, 2, 'mob18698_Leave')
RegisterUnitEvent(18698, 3, 'mob18698_Kill')
RegisterUnitEvent(18698, 4, 'mob18698_Die')
